package com.patterns.observer.observable;

import java.util.Observer;

public class Test {
	public static void main(String[] args) {
		Observer o1 = new ConcreteObserver("张三");//观察者1
		Observer o2 = new ConcreteObserver("李四");//观察者2
		
		ConcreteSubject subject = new ConcreteSubject();
		subject.addObserver(o1);
		subject.addObserver(o2);
		
		subject.send("Hello World !!!");
	}
}
